package com.xfgg.design.singleton;

/**
 * 懒汉式 线程安全
 *
 * @author xfgg
 */
public class LazySafe {
    private static LazySafe lazySafe;

    private LazySafe() {

    }

    public static synchronized LazySafe getLazySafe() {
        if (lazySafe == null) {
            lazySafe = new LazySafe();
        }
        return lazySafe;
    }
}
